<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=7"/>
    <title>悦定后台管理系统</title>

    <!--判断是否登陆-->
    <script type="text/javascript" src="../../vendor/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="../../js/config.js"></script>
    <script type="text/javascript" src="../../js/jquerySession.js"></script>
    <script type="text/javascript">
        if ($.session.get('token') == null) {
            alert("用户未登录！");
            window.location.href = "../../login.html"
        }
    </script>

    <link href="../../css/reset.css" rel="stylesheet" type="text/css"/>
    <link href="../../css/system.css" rel="stylesheet" type="text/css"/>
    <link href="../../css/table_form.css" rel="stylesheet" type="text/css"/>
    <link href="../../css/default.css" rel="stylesheet" type="text/css">
    <link rel="alternate stylesheet" type="text/css" href="../../css/styles2.css" title="styles2" media="screen">
    <link rel="alternate stylesheet" type="text/css" href="../../css/styles3.css" title="styles3" media="screen">
    <link rel="alternate stylesheet" type="text/css" href="../../css/styles4.css" title="styles4" media="screen">
    <script language="javascript" type="text/javascript" src="../../vendor/jquery.min.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/admin_common.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/styleswitch.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/formvalidator.js" charset="UTF-8"></script>
    <script language="javascript" type="text/javascript" src="../../js/formvalidatorregex.js" charset="UTF-8"></script>
    <script type="text/javascript" charset="utf-8" src="../../vendor/kindeditor-all.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../vendor/zh-CN.js"></script>
    <script type="text/javascript" charset="UTF-8" src="../../js/Abbreviations.js"></script>

    <script type="text/javascript">
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('textarea[name="content"]', {
                uploadJson: baseUrl + '/uploadImage',//上传
//                fileManagerJson: 'http://127.0.0.1:8080/api/v1/fileUpload1',//文件管理
                allowFileManager: false,
                allowUpload:true,
                afterBlur: function () {
                    this.sync();
                }  //数据同步
            });
        });

        $(function(){
            //图片文件大小控制
            $("#file").change(function () {
                var fileInput = $("#file")[0];
                var byteSize = fileInput.files[0].size;
                if (byteSize > 1024 * 1024) {
                    alert("图片大小超过1M");
                    $("#file").val("");
                }
            })
        })
    </script>
    <script type="text/javascript">
        window.focus();
    </script>
    <style type="text/css">
        html {
            _overflow-y: scroll
        }
    </style>
</head>
<body>
<form id="myform" enctype="multipart/form-data" style="text-align: left;">
    <div class="pad-10">
        <div class="col-tab">
            <div id="div_setting_1" class="contentList pad-10">
                <table width="100%" class="table_form ">
                    <tr>轮播图标题：
                        <input type="text" value="" class="title" name="title"/>
                    </tr>
                    <br/>
                    <br/>
                    <tr>轮播图图片：
                        <input type="file" name="file" id="doc">
                    </tr>
                </table>
                <br/>
                <br/>
                <table width="100%" class="table_form ">
                    <tbody>
                    <tr>
                        <td>
                            <div class="ke-container ke-container-default" style="width: 650px;"></div>
		                            <textarea id="editor_id" name="content"
                                              style="width: 690px; height: 300px; display: none;">

		                            </textarea>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>